<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>聊天室</title>
    <!-- 引入bootstrap样式 -->
    <!-- CSS only -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css">
    <link rel="stylesheet" href="index.css">
</head>

<body class="bg-light d-flex justify-content-center">


    <div class="container room mt-5 card">
        <div class="row">
            <div class="d-flex justify-content-between aline-item-center py-2 bg-secondary text-light">
                <div class="left">聊一聊</div>
                <a href="javascript:;" class="right text-light text-decoration-none" id="outPage">
                    退出<i class="bi bi-arrow-right-short"></i>
                </a>
            </div>
        </div>
        <div class="row">
            <div class="room-list col-lg-3 col-md-3 col-sm-12 col-xs-12 d-flex flex-column">
                <div class="fs-4 py-2 border-bottom"><span id="roomName"></span> <span style="font-size:13px;">在线人数(
                        <span id="inlineCount">100</span> )</span></div>
                <div class="overflow-auto">
                    <ul class="flex-grow-1 mb-2" id="userList"></ul>
                </div>
            </div>
            <div class="col-lg-9 col-md-9 col-sm-12 col-xs-12 new-list-container">
                <div class="welcome bg-success text-white bg-opacity-75">欢迎张三加入房间</div>
                <div class="overflow-auto news-content" id="msg-container">
                    <ul id="msgContent"></ul>
                </div>
                <div class="row">
                    <div class="input-group mb-2">
                        <input type="text" class="form-control" placeholder="请输入内容" id="inputContent">
                        <button class="btn btn-outline-secondary" type="button" id="submitBtn"><i
                                class="bi bi-send"></i> 发
                            送</button>
                    </div>
                </div>
            </div>
        </div>
    </div>

</body>
<!-- 引入客户端js -->
<script src="/socket.io/socket.io.js"></script>
<!-- 引入bootstrap的js -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
    integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
    crossorigin="anonymous"></script>
<!-- moment -->
<script src="http://cdn.staticfile.org/moment.js/2.24.0/moment-with-locales.js"></script>
<!-- 引入自己的js -->
<script src="/main.js"></script>

</html>